﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 类
{
    class customer
    {
       private string name;
       private  int age;
       private string sex;
       private string CreatTime;
        private int time;
       public int TIME
        {
            //get
            //{
            //    return age;
            //}
            //set
            //{
            //    if(value<=0)
            //    {
            //        return;
            //    }
            //    age = value;
            //}
            get; set;

        }
       public void Show()
        {
            Console.WriteLine("姓名是"+name);
            Console.WriteLine("年龄是"+age);
            Console.WriteLine("性别是"+sex);
            Console.WriteLine("加入时间是"+CreatTime);


        }
        public void Information()
        {
            Console.WriteLine("you name");
            name = Console.ReadLine();
            Console.WriteLine("you age");
            age = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("you sex");
            sex = Console.ReadLine();
            Console.WriteLine("you creattime");
            CreatTime = Console.ReadLine();
            
        }


    }
}
